<?php


namespace App\Logic;


use App\server\liveServer;

class LiveLogic
{
    /**
     * @param $user_id
     * @param $title
     * @return string
     * 直播
     * @yuankai
     */
    public static function live($user_id,$title)
    {
        if (empty($user_id)) abort('10001','缺少用户id');
        if (empty($title)) abort('10001','缺少直播间名称');
        $Live = liveServer::getLiveStream($user_id,1);
        return $Live;
    }
}
